Provides read-only access to the files contained within a single package that is stored in the file system.
Namespace: Microsoft.LearningComponents
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public class FileSystemPackageReader : PackageReader |
| Name | Description | |
| Ð | FileSystemPackageReader (string) | Initializes a new instance of the |
| Ð | FileSystemPackageReader (string, ImpersonationBehavior) | Initializes a new instance of the |
| Name | Description | |
| ÐS | Create | Returns either a ZipPackageReader or LrmPackageReader, according to the type of package provided. Inherited from PackageReader. |
| Ð | CreateManifestNavigator () | Returns an XPathNavigator that points to the <manifest> node of the package manifest. Inherited from PackageReader. |
| Ð | Dispose () | This method supports the .NET Framework infrastructure and is not intended to be used directly from your code. Releases all resources used by the PackageReader. Inherited from PackageReader. |
| Ï | Dispose (bool) | Releases all resources used by this object. Inherited from PackageReader. |
| Ð | FileExists (string) | Gets a value indicating whether the file exists in the package. |
| Ð | GetFilePaths () | Gets the collection of file paths in the package. |
| Ð | GetFileStream (string) | Returns a System.IO.Stream that can read the specified file. |
| Ð | TransmitFile (string, HttpResponse) | Writes the requested file from the package directly to the response. This method clears the response before sending the file. |
The package can be stored on the local hard drive, removable storage, or on a network file share accessible via a mapped drive letter or UNC path.
See PackageReader for examples of how classes based on PackageReader (such as this one) can be used.
The only state maintained by FileSystemPackageReader is the file system path to the package, which is set in the constructor and never changes for the lifetime of the object.